package com.csun.cmny.provider.service;

import com.csun.cmny.core.support.IService;
import com.csun.cmny.provider.device.phone.entity.PhoneDataEntity;
import com.csun.cmny.provider.model.domain.DmcPhoneData;

import java.util.List;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2019-01-08 18:11
 * @Description: the interface dmc phone data service.
 */
public interface DmcPhoneDataService extends IService<DmcPhoneData> {

    /**
     * query real phone data by device id
     *
     * @param deviceId  the device id
     *
     * @return the dmc phone data
     */
    DmcPhoneData queryRealPhoneDataByDeviceId(Long deviceId);

    /**
     * update phone data by device id
     *
     * @param dmcPhoneData  dmc phone data
     *
     * @return the int
     */
    Integer updatePhoneDataByDeviceId(DmcPhoneData dmcPhoneData);

    /**
     * delete phone data by device id
     *
     * @param deviceId  device id
     *
     * @return the int
     */
    Integer deletePhoneDataByDeviceId(Long deviceId);

    /**
     * 查询全部的电话机数据
     *
     * @return
     */
    List<PhoneDataEntity> queryPhoneDataBindList();
}
